package org.chen.common.flight;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;
import java.util.Map;

// FlightSearchData.java - 第一步API返回的完整数据
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class FlightSearchData {
    private String transactionID;
    private int adultCount;
    private int childCount;
    private int infantCount;
    private String flightWay;  // S-单程, D-往返
    private String cabin;      // Y_S等
    private String scope;      // i-国际
    private int segmentNo;
    private boolean directFlight;
    private boolean noRecommend;
    private Map<String, Object> extensionAttributes;
    private List<FlightSegment> flightSegments;
    private Map<String, Object> extGlobalSwitches;
}
